-- killer_mark_mon
-- created by cheny3
-- 标记

return {
    fetchProps = function(who, status, condition)
        local props  = {};
        local endRound = condition["end_round"];

        -- 所受伤害增加
        local propId = PropM.getPropId("mark_receive_damage_add");
        local value = condition["value2"];

        table.insert(props, { propId, 1, value, endRound, });

        return props;
    end,

    desc = function(who, status, condition)
        -- 玩家降低杀手标记效果
        local co = 1000;
        local prop = PropM.combine(who, "weak_kill_mark", 1);
        if prop[3] > 0 then
            co = 1000 - prop[3];
        end

        -- 获取状态描述
        local cfg = CombatStatusM.getStatusInfo(status);
        local desc = cfg.desc;

        -- 所受伤害增加
        local value = FormulaM.invoke("CALC_BIG_DIVISION", condition["value2"], co, 1000);

        if value > 0 then
            value = math.max(10, value);
        end

        value = math.modf(math.abs(value / 10));
        desc = string.gsub(desc, "{value2}", value);

        return desc;
    end,
};
